﻿using SS.Net.AppGen.Models;
using SS.Common.DBBuilder.DBDataStructure;

namespace SS.Net.AppGen.WebGenerators.WebControllerGenerator
{
    /// <summary>
    /// The interface that presents the algorithm to generate Insert method in partial controller
    /// </summary>
    public interface IInsertControllerItemAlgorithm
    {
        #region Methods

        /// <summary>
        /// The method to generate item contents
        /// </summary>
        /// <param name="item">The item is extracted from template file</param>
        /// <param name="tbl">The datasource for generating</param>
        /// <returns></returns>
        string GenerateContents(Item item, Table tbl);

        #endregion
    }
}
